/**
 * @Author: 徐铭泽
 * @Date: 2019/11/5
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取主页面列表数据
export const searchMainPageInfo = params => axios.get(`${SERVER.VEHICLE}/purchase/invoice/searchMainPageInfo`, { params });
// 新增或更新数据
export const saveInvoiceInfo = params => axios.post(`${SERVER.VEHICLE}/purchase/invoice/saveInvoiceInfo`, params);
// 获取已开发票的主页面列表数据
export const searchAlreadyMainPageInfo = params => axios.get(`${SERVER.VEHICLE}/purchase/invoice/searchAlreadyMainPageInfo`, { params });
// 根据发票id获取相关结算信息
export const searchDetailsByParentId = params => axios.get(`${SERVER.VEHICLE}/purchase/invoice/searchDetailsByParentId`, { params });
// 取消发票认证信息
export const cancelInvoiceAuth = params => axios.post(`${SERVER.VEHICLE}/purchase/invoice/cancelInvoiceAuth`, params);
// 根据供应商代码获取供应商信息
export const businessCustomer = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/businessCustomer`, { params });
